#!/bin/sh
#根据进程名杀死进程

pName=dog-blog

PROCESS=`ps -ef|grep ${pName}|grep -v grep|grep -v PPID|awk '{ print $2}'`
for i in $PROCESS
do
  echo "Kill the ${pName} process [ $i ]"
  kill -9 $i
done
